/*
 * @(#)ShopSolrService.java 2012-01-09
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.service.v2;

import java.util.Map;

import cn.shangjia.common.dao.support.Page;
import cn.shangjia.common.domain.Domain;
import cn.shangjia.search.common.bean.AbstractSolrBean;

/**
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2012-01-09 09:29:37
 * @since 1.0
 */
public interface SolrService<SOLRBEAN extends AbstractSolrBean , T extends Domain> {
	
	Page<T> getPageObject(Map<String, Object> params, int pageNo, int pageSize);
	
	
	Page<T> getPageObject(Map<String, Object> params, int pageNo, int pageSize, String field, String desc);
	
	T getObject(String id);
	
	T getObject(Map<String, Object> params);
}
